<?php

namespace App\Console\Commands;

use App\Lib\ConsumerSendGiftMq as GG;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Log;

class ConsumerSendGiftMq extends Command
{

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'ConsumerSendGiftMq:queue';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '异步礼物消费处理-增加财富值等业务操作';

    public function __construct()
    {
        parent::__construct();
    }

    public function handle()
    {
        try {
            $consumer = new GG();
            $consumer->consumer();
        } catch (\Exception $e) {
            Log::error($e->getMessage());
        }
    }
}
